package org.demo.eureka;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.Arrays;

@EnableEurekaServer
@SpringBootApplication
public class EurekaServerApplication {

	public static void main(String[] args) {
		String[] aa = new String[args.length+1];
		for(int i=0; i < args.length; i++){
			aa[i] = args[i];
		}
		Arrays.fill(aa, "--spring.config.location=classpath:/es_peer1.properties");
		new SpringApplicationBuilder(EurekaServerApplication.class).web(true).run(args);
	}
}
